package com.szpx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author June
 * @version 1.0.0
 * @title tb_User
 * @create 2024/4/2 14:21
 * @description
 **/
@Data
@Table(name = "tb_user")
public class TBUser {

    private Integer uid;

    private String username;

    private String password;

    private String phone;

    private String email;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime regtime;
    //余额
    private double balance;
    //充值金额
    private double amount;
    public static interface Login{}

    public static interface Register{}
}
